package com.xnew.menu.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class Menu implements Serializable {
    private String id;

    private String menuCode;

    private String menuName;

    private String menuIcon;

    private String menuUrl;

    private String parentId;

    private String orderBy;

    private BigDecimal isShow;

    private String resourceUrl;

    private String resourceType;

    private String permission;
    
    private boolean status;
    
    private List<Menu> sysMenuVoChild;
    
    private List<Menu> children;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public Menu() {
		super();
	}

	public void setId(String id) { 
        this.id = id == null ? null : id.trim();
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode == null ? null : menuCode.trim();
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName == null ? null : menuName.trim();
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon == null ? null : menuIcon.trim();
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl == null ? null : menuUrl.trim();
    }


    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission == null ? null : permission.trim();
    }

	public List<Menu> getSysMenuVoChild() {
		return sysMenuVoChild;
	}

	public void setSysMenuVoChild(List<Menu> sysMenuVoChild) {
		this.sysMenuVoChild = sysMenuVoChild;
	}

	public List<Menu> getChildren() {
		return children;
	}

	public void setChildren(List<Menu> children) {
		this.children = children;
	}

	public String getResourceUrl() {
		return resourceUrl;
	}

	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	public BigDecimal getIsShow() {
		return isShow;
	}

	public void setIsShow(BigDecimal isShow) {
		this.isShow = isShow;
	}
	
	public void setStatus(boolean status) {
		this.status = status;
	}
	
	public boolean getStatus(){
		return status;
	}

	@Override
	public String toString() {
		return "Menu [id=" + id + ", menuCode=" + menuCode + ", menuName=" + menuName + ", menuIcon=" + menuIcon
				+ ", menuUrl=" + menuUrl + ", parentId=" + parentId + ", orderBy=" + orderBy + ", isShow=" + isShow
				+ ", resourceUrl=" + resourceUrl + ", resourceType=" + resourceType + ", permission=" + permission
				+ ", sysMenuVoChild=" + sysMenuVoChild + "]";
	}

	public Menu(String id, String menuCode, String menuName, String menuIcon, String menuUrl, String parentId,
			String orderBy, BigDecimal isShow, String resourceUrl, String resourceType, String permission) {
		super();
		this.id = id;
		this.menuCode = menuCode;
		this.menuName = menuName;
		this.menuIcon = menuIcon;
		this.menuUrl = menuUrl;
		this.parentId = parentId;
		this.orderBy = orderBy;
		this.isShow = isShow;
		this.resourceUrl = resourceUrl;
		this.resourceType = resourceType;
		this.permission = permission;
	}

    
}